package com.hejjon.core.config;

import org.springdoc.core.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * swagger3配置类
 */
@Configuration
public class SwaggerConfig {

    @Bean
    public GroupedOpenApi adminApi() {
        return GroupedOpenApi.builder()
                .group("用户界面")
                .pathsToMatch("/**")
                .build();
    }

    @Bean
    public GroupedOpenApi datasourceApi() {
        return GroupedOpenApi.builder()
                .group("数据源管理")
                .pathsToMatch("/**")
                .build();
    }


}
